﻿@model MvcMusicStore.Song
@{
    Layout = "~/Views/Shared/_LayoutForAdmin.cshtml";
    ViewBag.Title = "Delete song";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this song?</h3>
<fieldset>
    <legend>Song</legend>

    <div class="display-label">titleSong</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.titleSong)
    </div>

    <div class="display-label">contentType</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.contentType)
    </div>

    <div class="display-label">contentGuid</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.contentGuid)
    </div>

    <div class="display-label">yearSong</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.yearSong)
    </div>

    <div class="display-label">dateAdd</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.dateAdd)
    </div>

    <div class="display-label">costSong</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.costSong)
    </div>

    <div class="display-label">counterBought</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.counterBought)
    </div>

    <div class="display-label">Author</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Author.nameAuthor)
    </div>

    <div class="display-label">Genre</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Genre.nameGenre)
    </div>

    <div class="display-label">Album</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Album.titleAlbum)
    </div>
</fieldset>
@using (Html.BeginForm("Delete", "SongManager", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
     @Html.AntiForgeryToken()
    <p>
        @Html.HiddenFor(model => model.id)
        <input type="submit" value="Delete song" /> |
    </p>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
